import './axios'
import {$get,$post} from './http.js'


export const getShopp = (params) =>{//获取商品信息
  let url = '/productlist.php';
  return $get(url,params)
}

export const login =(data)=>{//登陆
  let url = '/login.php'
  return $post(url,data)
}
export const getSouye =(params)=>{
  let url = '/productlist.php'
  return $get(url,params)
}
export const getDeatil = (params)=>{
  let url = '/detail.php'
  return $get(url,params)
}

export default {
  getShopp,
  login,
  getSouye,
  getDeatil
}